<template>
	<view class="address">
		<image class="icon" src="/static/images/adderss2.png" mode=""></image>
		<view class="txtbox">
			<view class="title ellipsis">
				{{ data.address }}
			</view>
			<view class="userBox">
				<view class="name">
					{{ data.consignee }}
				</view>
				<view class="num">
					{{ data.mobile }}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'chooseAddress',
		props: {
			data: {
				type: Object,
				default: () => {},
			},
		},
		data() {
			return {};
		},

		methods: {},
	};
</script>

<style lang="scss" scoped>
	.address {
		margin: $margin-width auto;
		background-color: $price-color;
		width: $connet-width;
		height: 160rpx;
		background: #fff;
		border-radius: 20rpx 20rpx 20rpx 20rpx;
		display: flex;
		align-items: center;
		// color: $txt-color;
		justify-content: space-around;

		.icon {
			width: 46rpx;
			height: 50rpx;
			margin-left: $margin-width;
		}

		.txtbox {
			height: 100%;
			margin-left: $margin-width;
			display: flex;
			flex-direction: column;
			justify-content: space-around;
			width: 500rpx;

			.title {
				font-size: $uni-font-size-15;
				font-weight: bold;
			}

			.userBox {
				display: flex;
				font-size: $uni-font-size-14;

				.name {
					margin-right: $margin-width;
				}
			}
		}

		.navto {
			margin-right: 30rpx;
			width: 50rpx;
			height: 50rpx;
		}
	}
</style>
